package pzl.com.compositepattern;

import android.util.Log;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-02]
 *          <p/>
 *          文件
 */
public class FileComponent extends FileSystemComponent {
    static final String TAG = "FileComponent";

    public FileComponent(String name) {
        super(name);
    }

    @Override
    void add(FileSystemComponent component) {
        //空实现
    }

    @Override
    void remove(FileSystemComponent component) {
        //空实现
    }

    @Override
    void delete() {
        Log.w(TAG, "删除文件[" + name + "]");
    }

    @Override
    void display() {
        Log.w(TAG, "文件:" + name);
    }

}
